import 'package:flutter_base_app/config/app_colors.dart';
import 'package:flutter/cupertino.dart';

class AppBgWidget extends StatelessWidget {
  final Widget child;
  final Color? color;
  final Decoration? decoration;

  const AppBgWidget(
      {super.key, this.color, this.decoration, required this.child});

  @override
  Widget build(BuildContext context) {
    return Container(
      color: decoration == null ? color ?? ColorsApp.page_background : null,
      decoration: decoration,
      // decoration: BoxDecoration(
      //   borderRadius: BorderRadius.circular(10),
      //   border: Border.all(color: context.appColors.dividerColor, width: 1),
      //   color: color ?? context.appColors.homeBackground,
      // ),
      child: child,
    );
  }
}
